package com.ifinc.common.utils.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by IntelliJ IDEA.
 * User: luotao
 * Date: 12-5-29
 * Time: 20:10
 */
public class App {
    static ApplicationContext app = null;
    public static ApplicationContext getApp(String classPath) {
        if (app == null) {
            app = new ClassPathXmlApplicationContext(classPath);
        }
        return app;
    }
}
